package com.yida.wy.basic.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.yida.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件管理表 实体类。
 *
 * @author lqq
 * @since 1.0
 */
@Data
@ApiModel(value = "文件管理表", description = "文件管理表")
@Table(value = "wy_file_management")
public class WyFileManagement implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 文件编码(文件上传统一查询编码)
     */
    @ApiModelProperty(value = "文件编码(文件上传统一查询编码)")
    @Column(value = "file_code")
    private Long fileCode;

    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称")
    @Column(value = "file_name")
    private String fileName;

    /**
     * 文件描述
     */
    @ApiModelProperty(value = "文件描述")
    @Column(value = "file_remark")
    private String fileRemark;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    @Column(onInsertValue = "now()")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
